package com.glory.brepda.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * FileName: ScrapEntity
 * Author: XJH
 * Date: 2020/5/28 9:44
 * Description:
 * History:
 */
public class ScrapEntity implements Serializable {

  private String ACTIONTYPE;
  private String LOTID;
  private String LOTRRN;
  private String MAINQTY;
  private String ACTIONCODE;
  private String ACTIONREASON;
  private String ACTIONCOMMENT;
  private String SUBQTY;
  private List<MainQTY> QTYLIST;
  private String scrapNum;
  private String ppm;

  public List<MainQTY> getQTYLIST() {
    if (QTYLIST == null) {
      return new ArrayList<>();
    }
    return QTYLIST;
  }

  public String getPpm() {
    return ppm;
  }

  public void setPpm(String ppm) {
    this.ppm = ppm;
  }

  public String getScrapNum() {
    return scrapNum;
  }

  public void setScrapNum(String scraptNum) {
    this.scrapNum = scraptNum;
  }

  public String getSUBQTY() {
    return SUBQTY;
  }

  public void setSUBQTY(String SUBQTY) {
    this.SUBQTY = SUBQTY;
  }

  public void setQTYLIST(List<MainQTY> QTYLIST) {
    this.QTYLIST = QTYLIST;
  }

  public String getACTIONTYPE() {
    return ACTIONTYPE == null ? "" : ACTIONTYPE;
  }

  public void setACTIONTYPE(String ACTIONTYPE) {
    this.ACTIONTYPE = ACTIONTYPE;
  }

  public String getLOTID() {
    return LOTID == null ? "" : LOTID;
  }

  public void setLOTID(String LOTID) {
    this.LOTID = LOTID;
  }

  public String getLOTRRN() {
    return LOTRRN == null ? "" : LOTRRN;
  }

  public void setLOTRRN(String LOTRRN) {
    this.LOTRRN = LOTRRN;
  }

  public String getMAINQTY() {
    return MAINQTY == null ? "0" : MAINQTY;
  }

  public void setMAINQTY(String MAINQTY) {
    this.MAINQTY = MAINQTY;
  }

  public String getACTIONCODE() {
    return ACTIONCODE == null ? "" : ACTIONCODE;
  }

  public void setACTIONCODE(String ACTIONCODE) {
    this.ACTIONCODE = ACTIONCODE;
  }

  public String getACTIONREASON() {
    return ACTIONREASON == null ? "" : ACTIONREASON;
  }

  public void setACTIONREASON(String ACTIONREASON) {
    this.ACTIONREASON = ACTIONREASON;
  }

  public String getACTIONCOMMENT() {
    return ACTIONCOMMENT == null ? "" : ACTIONCOMMENT;
  }

  public void setACTIONCOMMENT(String ACTIONCOMMENT) {
    this.ACTIONCOMMENT = ACTIONCOMMENT;
  }

  public static class MainQTY implements Serializable{
    private String MAINQTY;

    public MainQTY(String MAINQTY) {
      this.MAINQTY = MAINQTY;
    }

    public String getMAINQTY() {
      return MAINQTY == null ? "" : MAINQTY;
    }

    public void setMAINQTY(String MAINQTY) {
      this.MAINQTY = MAINQTY;
    }
  }

  @Override
  public String toString() {
    return "ScrapEntity{" +
            "ACTIONTYPE='" + ACTIONTYPE + '\'' +
            ", LOTID='" + LOTID + '\'' +
            ", LOTRRN='" + LOTRRN + '\'' +
            ", MAINQTY='" + MAINQTY + '\'' +
            ", ACTIONCODE='" + ACTIONCODE + '\'' +
            ", ACTIONREASON='" + ACTIONREASON + '\'' +
            ", ACTIONCOMMENT='" + ACTIONCOMMENT + '\'' +
            ", SUBQTY='" + SUBQTY + '\'' +
            ", QTYLIST=" + QTYLIST +
            '}';
  }
}
